/**
 * 配置编译环境和线上环境之间的切换
 * baseUrl: 域名地址
 */

let baseUrl = ''
if (process.env.NODE_ENV === 'development') {
  // 测试地址 '/testapi' '/api' '/tianci' '/liuUrl '/shenapi', '/pretest', '/preapi'
  baseUrl = '/pretest'
  // baseUrl = 'http://120.132.30.130:8090'
} else if (process.env.NODE_ENV === 'production') {
  // 线上地址 window.location.origin + '/apis'
  // baseUrl = 'http://120.132.30.130:8090'
  baseUrl = window.location.origin + '/api'
}

export {
  baseUrl
}
